$(function()
{
	$("#duvar").load("mainFrame.php");
	$("#leftFrame").load("leftFrame.php");
	$("#rightFrame").load("rightFrame.php");
	$("#mainTab").load("mainTab.php");
	$("#addPublicationForm").submit(function(event)
	{
		event.preventDefault();
		var publicationVal = $("#addPublication").val();
		 $.post("publications.php", {publicArea : publicationVal}, function(data)
		 {
				$("#duvar").load("mainFrame.php");
		});
		$("#addPublication").css("height", "32px");
		$("#addPublication").css("max-height", "32px");
		$("#addPublication").css("min-height", "32px");
		$("#addPublication").css("width", "315px");
		$("#addPublication").css("max-width", "315px");
		$("#addPublication").css("min-width", "315px");
		$("#addPublication").val("Say something...");
		$("#publicButton").css("display", "none");
	});
});	